﻿namespace Entities.Enumeration {

    public class OrderType {

        public readonly static OrderType Order  = new OrderType(ORDER, "Order", "订单");
        public readonly static OrderType TransferStock  = new OrderType(TRANSFER_STOCK, "Transfer Stock", "直接下单");
        public readonly static OrderType Unknow = new OrderType(UNKNOW, "", "未知");

        public const int ORDER  = 1;
        public const int TRANSFER_STOCK  = 0;
        public const int UNKNOW = 99;

        public int    Type  { get; set; }
        public string Name  { get; set; }
        public string CName { get; set; }

        public OrderType(int type, string name, string cname) {
            Type  = type;
            Name  = name;
            CName = cname;
        }

    }
}